/**
 * Created by Toma on 2017/7/17.
 */
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  base: {},
  school: [],
  grade: [
      '一年级',
      '二年级',
      '三年级',
      '四年级',
      '五年级',
      '六年级',
      '七年级',
      '八年级',
      '九年级',
      '高一',
      '高二',
      '高三'
  ],
  // 临时数据 创建班级
  crtClassTmp:{}
}

const mutations = {
  GET_school(state, payload) {

  },
  SET_crtClassTmp(state, payload) {
    state.crtClassTmp = Object.assign({}, state.crtClassData, payload)
  }
}

const actions = {
  getSchool({ commit }) {

  }
}

export default new Vuex.Store({
  state,
  mutations,
  actions
})
